package com.zrrd.gmall.webll.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class PassportController {

    @GetMapping("/login.html")
    public String login(HttpServletRequest request){
        //获取页面地址中的请求参数（记录了原始地址）
        String originUrl = request.getParameter("originUrl");
        //存入到请求中
        request.setAttribute("originUrl",originUrl);
        //跳转到登录页面
        return "login";
    }
}
